from fastapi import FastAPI
import uvicorn

from core.init_app import create_app, lifespan
from settings.config import settings

app = create_app(lifespan=lifespan)

if __name__ == "__main__":
    uvicorn.run(
        app="main:app", 
        host="0.0.0.0", 
        port=settings.BACKEND_PORT, 
        reload=settings.RELOAD, 
        workers=settings.WORKERS
    )
    